﻿using System;
using System.Collections.Generic;
using System.Linq;
using Dapper.Contrib.Extensions;

namespace WoChu.WMS.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [Table("SALEAPP")]
    public partial class SaleAPP
    {
        public SaleAPP()
        {
            SaleAPPItemList = new List<SaleAPPItem>();
        }

        #region 属性
        /// <summary>
        /// 
        /// </summary>
        public string SHEETID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int EDITSHOPID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string REFSHEETID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int REFSHEETTYPE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int SALESHOPID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int OUTSHOPID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int CUSTOMERID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string CUSTOMERREMARK1 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string CUSTOMERREMARK2 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string CUSTOMERREMARK3 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int MEMBERID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int SALEORDERFLAG { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime? RATIONDATE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int RATIONTIME { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int CUSTOMERPAYTYPE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int PAYFLAG { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int DELIVERYMODE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int CHECKRATIONFLAG { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime ORDERTIME { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime PAYTIME { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime SHIPMENTSTIME { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int PROBLEMFLAG { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string PROBLEMREAMRK { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int INVOICETYPE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string INVOICEHEAD { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string INVOICECONTENT { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string CONSIGNEE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string CONSIGNEEADD { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string POSTCODE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string TEL { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string MOBILE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string LANDMARKS { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string EMAIL { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int PACKFLAG { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string SHIPPER { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string SHIPMOBILE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string SHIPORDERNO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int GREETINGFLAG { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string GREETINGCONTENT { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int AFTERSERVICEFLAG { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string AFTERSERVICEREAMRK { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int ORDERSOURCETYPE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public double TOTALQTY { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public double TOTALCOSTTAXVALUE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public double TOTALCOSTVALUE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public double TOTALSALETAXVALUE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public double TOTALSALEVALUE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public double TOTALDISCVALUE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int FLAG { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int CHECKSTATE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string CHECKREMARK { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string EDITOR { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime EDITDATE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime EDITTIME { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string AGENT1 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string AGENT2 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string AGENT3 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string CHECKER { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime CHECKDATE { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public DateTime CHECKTIME { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int PRINTCOUNT { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string NOTE { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string APPORDERNO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int ERRCOUNT { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ERRINFO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string BATCHNUMBER { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string DISTRICT { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string TICKETNO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int SITEID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string SERIALNUMBER { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int DELIVERYSTATUS { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string SHIPPINGNAME { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string POINTNAME { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public double ORDERAMOUNT { get; set; }
        #endregion
    }

    /// <summary>
    ///  扩展属性
    /// </summary>
    public partial class SaleAPP
    {
        /// <summary>
        /// 配送时间段
        /// </summary>
        public string DeliveryTimePeriod { get; set; }

        /// <summary>
        /// 订单明细列表
        /// </summary>
        public List<SaleAPPItem> SaleAPPItemList { get; set; }
    }
}
